<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%--引用标签--%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<%@ include file="/WEB-INF/include/head.basic.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户编辑</title>
<script type="text/javascript">
	$(function(){
		registerBean.init();
		if('${message}'!=null && '${message}'!=''){
			  //错误提示信息
			 $('#tipInfos').addClass('error');
			 $('#tipInfos').html('${message}');
		}
	});
	//表单提交
	function forSave() {
		$("#saveBtn").linkbutton("disable");
		$("#saveForm").submit();
	}
</script>
</head>
<body>
<form:form action="./saveUser"  id="saveForm" modelAttribute="user" method="POST">
	<div id="panel">
		<table align="center" cellpadding="10px" style="border-spacing: 0;">
			<tr>
				<td colspan="2"><div id="tipInfos"></div></td>
			</tr>
			<tr>
				<td align="right"><strong>账户名：</strong></td>
				<td><form:input path="account" id="account" class="easyui-textbox" cssStyle="width:170px"/></td>
			</tr>
			<tr>
				<td align="right"><strong>密码：</strong></td>
				<td><form:password path="password" id="password" class="easyui-textbox" cssStyle="width:170px"/></td>
			</tr>
			<tr>
				<td align="right"><strong>性别：</strong></td>
				<td><form:select path="sex" cssClass="easyui-combobox" cssStyle="width:170px" data-options="editable:false"><form:option value="0">男</form:option><form:option value="1">女</form:option></form:select></td>
			</tr>
			<tr>
				<td align="right"><strong>真实姓名：</strong></td>
				<td><form:input path="realName" id="realName" class="easyui-textbox" cssStyle="width:170px"/></td>
			</tr>
			<tr>
				<td align="right"><strong>E-mail：</strong></td>
				<td><form:input path="email" id="email" class="easyui-textbox" cssStyle="width:170px"/></td>
			</tr>
			<tr>
				<td align="right"><strong>手机号码：</strong></td>
				<td><form:input path="mobile" id="mobile" class="easyui-textbox" cssStyle="width:170px"/></td>
			</tr>
			<tr>
				<td align="right"><strong>办公电话：</strong></td>
				<td><form:input path="officePhone" id="officePhone" class="easyui-textbox" cssStyle="width:170px"/></td>
			</tr>
		</table>
	</div>
	<div id="foot" style="padding:5px;text-align:center ; ">
		<a href="###" id="saveBtn" class="easyui-linkbutton" iconCls="icon-save" onclick="forSave()">提交注册信息</a>
	</div>
</form:form>
</body>
<script type="application/javascript">
	var registerBean={
		options : {
			title : "用户编辑",
			fit : false,
			iconCls:null,
			footer : "#foot",
			headerCls : "titleCss"
		},
		init:function(){
			$("#panel").panel(this.options);//设置Panel信息
		}
	};
</script>
</html>